<template>
    <div class="box" @click="closeFn">click me!</div>
</template>
<script>
export default {
    methods : {
        closeFn(){
            alert('干嘛点我呀！');
        }
    }
}
</script>
<style lang="less">
    .box{
        height:50px;
        width:50px;
        background:red;
    }
</style>


